package com.xls.box2023.network;

import android.content.Context;

import com.lzz.bottomencapsulation.consts.NetConsts;
import com.lzz.bottomencapsulation.net.RetrofitBase;

public class RequestManager3 {

    private static RequestManager3 requestManager;
    private static IApiserver apiService;

    private RequestManager3(Context context) {
        if (null == requestManager || null == apiService) {
            apiService = RetrofitBase.getInstace(context).setBaseUrl(NetConsts.BASE_COM_URL3).create(IApiserver.class);
        }
    }

    public static IApiserver getInstance(Context context) {
        if (requestManager == null) {
            synchronized (RequestManager3.class) {
                requestManager = new RequestManager3(context);
            }
        }
        return apiService;
    }
}
